<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/WEB-INF/templates/template.xhtml">
	<ui:define name="title">
		Novo Curso:
	</ui:define>


	<ui:define name="content">
		<h:outputText value="#{loginController.usuario.nome}" />
		<h:form id="formProfessor">
			
			<p:wizard widgetVar="wiz" flowListener="#{professorController.onFlowProcess}">

				<p:tab id="Professor">

					<p:panel header="Professor Dados">

						<h:messages errorClass="error" />

						<h:panelGrid columns="2" columnClasses="label, value"
							styleClass="grid">
							<h:outputText value="Nome: *" />
							<p:inputText required="true" label="Firstname"
								value="#{professorController.professorVO.nome}" />

							<h:outputText value="Sobrenome: *" />
							<p:inputText required="true" label="Sobrenome"
								value="#{professorController.professorVO.sobrenome}" />
							
							<h:outputText value="Matricula: *" />
							<p:inputText required="true" label="Matricula"
								value="#{professorController.professorVO.matricula}" />

							<h:outputText value="Idade: " />
							<p:inputText value="#{professorController.professorVO.idade}" />

						</h:panelGrid>
					</p:panel>
				</p:tab>

<!--				<p:tab id="Endereço">-->
<!--					<p:panel header="Endereço ">-->
<!---->
<!--						<h:messages errorClass="error" />-->
<!---->
<!--						<h:panelGrid columns="2" columnClasses="label, value">-->
<!--							<h:outputText value="Street: " />-->
<!--							<p:inputText value="#{userWizard.user.street}" />-->
<!---->
<!--							<h:outputText value="Postal Code: " />-->
<!--							<p:inputText value="#{userWizard.user.postalCode}" />-->
<!---->
<!--							<h:outputText value="City: " />-->
<!--							<p:inputText value="#{userWizard.user.city}" />-->
<!---->
<!--							<h:outputText value="Skip to last: " />-->
<!--							<h:selectBooleanCheckbox value="#{userWizard.skip}" />-->
<!--						</h:panelGrid>-->
<!--					</p:panel>-->
<!--				</p:tab>-->
<!---->
<!--				<p:tab id="Restrições">-->
<!--					<p:panel header="Contact Information">-->
<!---->
<!--						<h:messages errorClass="error" />-->
<!---->
<!--						<h:panelGrid columns="2" columnClasses="label, value">-->
<!--							<h:outputText value="Email: *" />-->
<!--							<p:inputText required="true" label="Email"-->
<!--								value="#{userWizard.user.email}" />-->
<!---->
<!--							<h:outputText value="Phone: " />-->
<!--							<p:inputText value="#{userWizard.user.phone}" />-->
<!---->
<!--							<h:outputText value="Additional Info: " />-->
<!--							<p:inputText value="#{userWizard.user.info}" />-->
<!--						</h:panelGrid>-->
<!--					</p:panel>-->
<!--				</p:tab>-->
<!---->
<!--				<p:tab id="confirm">-->
<!--					<p:panel header="Confirmation">-->
<!---->
<!--						<p:growl id="growl" sticky="true" showDetail="true" />-->
<!---->
<!--						<h:panelGrid id="confirmation" columns="6">-->
<!--							<h:outputText value="Firstname: " />-->
<!--							<h:outputText styleClass="outputLabel"-->
<!--								value="#{userWizard.user.firstname}" />-->
<!---->
<!--							<h:outputText value="Lastname: " />-->
<!--							<h:outputText styleClass="outputLabel"-->
<!--								value="#{userWizard.user.lastname}" />-->
<!---->
<!--							<h:outputText value="Age: " />-->
<!--							<h:outputText styleClass="outputLabel"-->
<!--								value="#{userWizard.user.age}" />>-->
<!--					-->
<!--					<h:outputText value="Street: " />-->
<!--							<h:outputText styleClass="outputLabel"-->
<!--								value="#{userWizard.user.street}" />-->
<!---->
<!--							<h:outputText value="Postal Code: " />-->
<!--							<h:outputText styleClass="outputLabel"-->
<!--								value="#{userWizard.user.postalCode}" />-->
<!---->
<!--							<h:outputText value="City: " />-->
<!--							<h:outputText styleClass="outputLabel"-->
<!--								value="#{userWizard.user.city}" />-->
<!---->
<!--							<h:outputText value="Email: " />-->
<!--							<h:outputText styleClass="outputLabel"-->
<!--								value="#{userWizard.user.email}" />-->
<!---->
<!--							<h:outputText value="Phone " />-->
<!--							<h:outputText styleClass="outputLabel"-->
<!--								value="#{userWizard.user.phone}" />-->
<!---->
<!--							<h:outputText value="Info: " />-->
<!--							<h:outputText styleClass="outputLabel"-->
<!--								value="#{userWizard.user.info}" />-->
<!---->
<!--							<h:outputText />-->
<!--							<h:outputText />-->
<!--						</h:panelGrid>-->
<!---->
<!--						<p:commandButton value="Submit" update="growl"-->
<!--							actionListener="#{userWizard.save}" />-->
<!---->
<!--					</p:panel>-->
<!--				</p:tab>-->

			</p:wizard>


		</h:form>

	</ui:define>
</ui:composition>
